-- GENERATED SPELL FOR [Gnarlhide] --


function spell0_30003(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(60290,pUnit)
pUnit:RegisterEvent('Sorts_30003', 6258, 1)
end

function spell1_30003(pUnit, Event) --@Dragon\'s Breath,Self--
pUnit:FullCastSpellOnTarget(35250,pUnit)
pUnit:RegisterEvent('Sorts_30003', 3327, 1)
end

function spell2_30003(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(20832,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30003', 559, 1)
end

function spell3_30003(pUnit, Event) --@Scorch,n/a--
pUnit:FullCastSpellOnTarget(38391,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30003', 1500, 1)
end

function Sorts_30003(pUnit, Event)
local choix_sorts_30003 = math.random(0, 3)
if choix_sorts_30003 == 0 then
pUnit:RegisterEvent('spell0_30003', 1, 1)
end
if choix_sorts_30003 == 1 then
pUnit:RegisterEvent('spell1_30003', 1, 1)
end
if choix_sorts_30003 == 2 then
pUnit:RegisterEvent('spell2_30003', 1, 1)
end
if choix_sorts_30003 == 3 then
pUnit:RegisterEvent('spell3_30003', 1, 1)
end
end

function mob30003_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30003', math.random(1500, 3000), 1)
end

function mob30003_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30003_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30003_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30003, 1, 'mob30003_Action')
RegisterUnitEvent(30003, 2, 'mob30003_Leave')
RegisterUnitEvent(30003, 3, 'mob30003_Kill')
RegisterUnitEvent(30003, 4, 'mob30003_Die')
